
import {getQuery } from '@/utils/auth'


export function openurl(url) {
        let data=getQuery()
        if(["ios","iphone os" ,'2'].includes(data.p['svn'])){//ios
            window.webkit.messageHandlers.ibc.postMessage({"action": "open_url", "url": url, "open_type": "1"}, "*");
        }
        else if(  ["web",'0'].includes(data.p['svn'])){
            window.open(url, "_blank");
        }
        else{//安卓
            window.abc.openUrlByDefaultBrowser(url);
        }
}
